import { Component } from 'react'
import { View, Text } from '@tarojs/components'
import './spotChild.less'

// https://taro-docs.jd.com/docs/children#%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9

export default class SpotChild extends Component {

  clickHandle = () => {
    this.props.onDeleteCard()
  }

  render() {
    return (
      <View className='container'>
        <Text>我是插槽组件的start</Text>
        {this.props.children}
        <Text>我是插槽组件的end</Text>
        {this.props.renderHeader}
      </View>
    )
  }

}
